package tw.edu.tku.im.maze.database;

import tw.edu.tku.im.maze.HeartBeatRep;
import tw.edu.tku.im.maze.HeartBeatReq;
import tw.edu.tku.im.maze.Packet;

public class HeartBeatProcessor extends PacketProcessor {

   @Override
   String acceptName() {
      return "heartBeat";
   }

   @Override
   Packet process(Packet packet) {
      HeartBeatReq req = (HeartBeatReq)packet;
      //...... to do something
      HeartBeatRep rep = new HeartBeatRep(0);
      return rep;
   }

}
